/*
 * @Description:
 * @Author: charles
 * @Date: 2020-10-26 16:39:14
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2021-08-07 11:47:20
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/home"
  },
  {
    path: '/home',
    name: 'Home',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Home.vue')
  },{
    path: '/project',
    name: 'Project',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Project.vue')
  },{
    path: '/apply',
    name: 'Apply',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Apply.vue')
  },{
    path: '/applyQuery',
    name: 'ApplyQuery',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/ApplyQuery.vue')
  },{
    path: '/applySuccess',
    name: 'ApplySuccess',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/ApplySuccess.vue')
  }, {
    path: '/article',
    name: 'Article',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Article.vue')
  },  {
    path: '/contact',
    name: 'Contact',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Contact.vue')
  }, {
    path: '/list',
    name: 'List',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/List.vue')
  },
  {
    path: '/jz',
    name: 'JZ',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/JZ.vue')
  },
  {
    path: '/jzlist',
    name: 'JZList',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/JZList.vue')
  },
  {
    path: '/yyt',
    name: 'YYT',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/YYT.vue')
  },{
    path: '/yytarticle',
    name: 'YYTArticle',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/YYTArticle.vue')
  },{
    path: '/yytlist',
    name: 'YYTList',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/YYTList.vue')
  },
  {
    path: '/xianqu',
    name: 'XianQu',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/XianQu.vue')
  },
  {
    path: '/xianqulist',
    name: 'XianQuList',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/XianQuList.vue')
  },
  {
    path: '/special',
    name: 'Special',
    meta: {
      scrollToTop: true
    },
    component: () => import('../views/Special.vue')
  },
{
  path: '/more',
  name: 'More',
  meta: {
    scrollToTop: true
  },
  component: () => import('../views/More.vue')
}
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
